package tables

import (
	"time"
)

type User struct {
	Id         int       `xorm:"not null pk autoincr INT(10)" json:"id" form:"id" mapstructure:"id"`
	Acid       int       `xorm:"" json:"acid" form:"acid" mapstructure:"acid"`
	Openid     string    `xorm:"" json:"openid" form:"openid" mapstructure:"openid"`
	Money      string    `xorm:"" json:"money" form:"money" mapstructure:"money"`
	UserMoney  string    `xorm:"" json:"user_money" form:"user_money" mapstructure:"user_money"`
	Score      int       `xorm:"" json:"score" form:"score" mapstructure:"score"`
	Name       string    `xorm:"" json:"name" form:"name" mapstructure:"name"`
	Phone      string    `xorm:"" json:"phone" form:"phone" mapstructure:"phone"`
	Nickname   string    `xorm:"" json:"nickname" form:"nickname" mapstructure:"nickname"`
	Avatar     string    `xorm:"" json:"avatar" form:"avatar" mapstructure:"avatar"`
	Unionid    string    `xorm:"" json:"unionid" form:"unionid" mapstructure:"unionid"`
	SessionKey string    `xorm:"" json:"session_key" form:"session_key" mapstructure:"session_key"`
	CreatedAt  int       `xorm:"created" json:"created_at" form:"created_at" mapstructure:"created_at"`
	UpdatedAt  int       `xorm:"updated" json:"updated_at" form:"updated_at" mapstructure:"updated_at"`
	DeletedAt  int       `xorm:"deleted" json:"deleted_at" form:"deleted_at" mapstructure:"deleted_at"`
	SubMchId   string    `xorm:"" json:"sub_mch_id" form:"sub_mch_id" mapstructure:"sub_mch_id"`
	IpAddr     string    `xorm:"" json:"ip_addr" form:"ip_addr" mapstructure:"ip_addr"`
	Sex        int       `xorm:"" json:"sex" form:"sex" mapstructure:"sex"`
	Birthday   time.Time `xorm:"" json:"birthday" form:"birthday" mapstructure:"birthday"`
	IsRobot    int       `xorm:"" json:"is_robot" form:"is_robot" mapstructure:"is_robot"`
}
